The Azteca ants feed off protein-rich secretions, necessary in their diet, that are produced by special glands at the base of the leaves.
Azteca ants do not sting, but they do bite, and will fiercely protect the tree from potential dangers, for example, they attack other insects that land on the tree and drive them away.
They will cut and kill any vines that begin to climb up the tree, whereas many other trees in the rain forest will be covered in epiphytes or dripping with vines, cecropia trees are generally epiphyte-free and vine-free.
These actions of the Azteca ants allow the cecropia tree to stay healthy, grow as fast as possible, and successfully compete with other trees for limited sunlight. In return, the tree provides the protecting ant with a place to live and a source of food.